package com.qunji.cpsdistribution.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author sjq
 * @since 2020-07-23
 */
public class Order extends Model<Order> {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Long orderId;
    /**
     * 订单编号
     */
    private String orderNumber;
    /**
     * 订单产品名称
     */
    private String orderProductname;
    /**
     * 订单地址
     */
    private String orderAddress;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 店铺id
     */
    private Long distributionId;
    /**
     * 物流id
     */
    private Long logisticsId;
    /**
     * 是否签收 是 1  否 0
     */
    private Integer signFor;
    /**
     * 下单时间
     */
    private Date createTime;
    /**
     * 签收时间
     */
    private Date signForTime;
    /**
     * 修改时间
     */
    private Date updateTime;
    /**
     * 注销id
     */
    private Long unsubscribeId;


    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getOrderProductname() {
        return orderProductname;
    }

    public void setOrderProductname(String orderProductname) {
        this.orderProductname = orderProductname;
    }

    public String getOrderAddress() {
        return orderAddress;
    }

    public void setOrderAddress(String orderAddress) {
        this.orderAddress = orderAddress;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getDistributionId() {
        return distributionId;
    }

    public void setDistributionId(Long distributionId) {
        this.distributionId = distributionId;
    }

    public Long getLogisticsId() {
        return logisticsId;
    }

    public void setLogisticsId(Long logisticsId) {
        this.logisticsId = logisticsId;
    }

    public Integer getSignFor() {
        return signFor;
    }

    public void setSignFor(Integer signFor) {
        this.signFor = signFor;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getSignForTime() {
        return signForTime;
    }

    public void setSignForTime(Date signForTime) {
        this.signForTime = signForTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getUnsubscribeId() {
        return unsubscribeId;
    }

    public void setUnsubscribeId(Long unsubscribeId) {
        this.unsubscribeId = unsubscribeId;
    }

    @Override
    protected Serializable pkVal() {
        return this.orderId;
    }

    @Override
    public String toString() {
        return "Order{" +
        ", orderId=" + orderId +
        ", orderNumber=" + orderNumber +
        ", orderProductname=" + orderProductname +
        ", orderAddress=" + orderAddress +
        ", userId=" + userId +
        ", distributionId=" + distributionId +
        ", logisticsId=" + logisticsId +
        ", signFor=" + signFor +
        ", createTime=" + createTime +
        ", signForTime=" + signForTime +
        ", updateTime=" + updateTime +
        ", unsubscribeId=" + unsubscribeId +
        "}";
    }
}
